﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

using LINQToolKit.Mapping;
using LINQToolKit.Processors;

namespace  LINQToolKit.Douban.Processors
{
    public sealed class DateTimeProcessor : PropertyProcessor
    {
        public override object FromXml(MetaProperty meta, IEnumerable<XElement> elements)
        {
            return DateTime.Parse(elements.First().Value);
        }
    }
}
